package cn.itsource.mapper;

import cn.itsource.domain.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface TeacherMapper {
    /**
     * 保存教师数据
     * @param teacher
     */
    void save(Teacher teacher);

    /**
     * 修改教师数据
     * @param teacher
     */
    void update(Teacher teacher);

    /**
     * 根据id删除教师数据
     * @param id
     */
    void delete(Long id);

    /**
     * 根据id获取教师数据
     * @param id
     * @return
     */
    Teacher get(Long id);

    /**
     * 获取全部教师数据
     * @return
     */
    List<Teacher> getAll();

    void batchSave(List<Teacher> teachers);
}
